package com.company.test29;

import javax.swing.*;

/**
 * Created by v on 16-11-24.
 */
public class Test2903 extends JApplet {
    public Test2903(){
        add(new JLabel("Hi,it rus from an event dispatch thread"));
    }

    public static void main(String[] args) throws Exception{
        SwingUtilities.invokeAndWait(new Runnable() {
            @Override
            public void run() {
                JFrame frame=new JFrame("EventDispatcherThreadDemo");
                frame.add(new Test2903());
                frame.setSize(200,200);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
            }
        });
    }
}
